<template>
  <view class="content">
    <view class="top bg">
      <view class="text-login"> 登陆-可信电子签 </view>
      <view class="go-text"> 欢迎回来,开启数字化信用 </view>
      <view class="input-box">
        <i class="icon-c"></i>
        <input
          v-model="mobile"
          placeholder="请输入手机号"
          type="text"
          class="input-class"
        />
      </view>
    </view>
    <button class="button-class" @click="handleNext">同意并继续</button>
    <view class="footer-checked">
      <u-checkbox
        v-model="value"
        shape="circle"
        active-color="#2a82e4"
        @change="checkboxChange"
      >
        用户注册协议/隐私协议
      </u-checkbox>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      value: 0,
      mobile: '' // 手机号
    }
  },
  onLoad() {},
  methods: {
    checkboxChange() {
      this.value = this.value === 0 ? 1 : 0
    },
    async handleNext() {
      this.$Router.push({ path: '/pages/account/code/index' })
    }
  }
}
</script>

<style lang="scss" scoped>
@function rpx($num) {
  @return $num + rpx;
}
page {
  background-color: #fff;
}

.content {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: #fff;
  height: 100vh;
}
.top {
  width: rpx(750);
  height: rpx(750);
  background: url('../../../static/images/login/bg2.png') no-repeat;
  background-size: 100% 100%;
  padding-top: rpx(160);
}

.text-login {
  font-size: 72rpx;
  font-weight: 400;
  letter-spacing: 0px;
  color: rgba(0, 0, 0, 1);
  text-align: left;
  vertical-align: top;
  margin-left: 80rpx;
  margin-bottom: 26rpx;
}

.go-text {
  font-size: 32rpx;
  font-weight: 400;
  letter-spacing: 0px;
  line-height: 23.17px;
  color: rgba(0, 0, 0, 1);
  margin-left: 80rpx;
}

.input-box {
  width: 698rpx;
  opacity: 1;
  margin: 102rpx auto 0rpx;
  position: relative;
  input {
    color: #000;
  }
}

.icon-c {
  display: block;
  width: 46rpx;
  height: 54rpx;
  position: relative;
  top: 110rpx;
  left: 70rpx;
  background: url('../../../static/images/login/mobile.png') no-repeat;
  background-size: 100% 100%;
}

input {
  height: 166rpx;
  border-top: 2rpx solid rgba(209, 209, 209, 1);
  border-bottom: 2rpx solid rgba(209, 209, 209, 1);
  font-size: 38rpx;
  font-weight: 400;
  letter-spacing: 0px;
  color: rgba(138, 135, 135, 1);
  padding-left: 206rpx;
}

.button-class {
  width: 446rpx;
  height: 88rpx;
  border-radius: 10px;
  background: rgba(42, 130, 228, 1);
  color: rgba(255, 255, 255, 1);
  text-align: center;
  line-height: 88rpx;
  margin: 256rpx auto 100rpx;
}

.footer-checked {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(2, 110, 204, 1);
}

.checked-class {
  width: 40rpx;
  height: 40rpx;
  margin-right: 15rpx;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(51, 51, 51, 1);
}
</style>
